package com.vimi8.ebb.dto;

import com.vimi8.ebb.model.Logistics;
import com.vimi8.ebb.model.ProductInfo;

/**
 * 产品信息DTO
 * Created by renyong on 2017/2/8.
 */
public class ProductDTO extends ProductInfo {

    /**
     * 填充父类
     * @param productInfo
     */
    public void fill(ProductInfo productInfo) {
        setId(productInfo.getId());
        setBusinessVolume(productInfo.getBusinessVolume());
        setTradingVolume(productInfo.getTradingVolume());
        setSalesArea(productInfo.getSalesArea());
        setProductName(productInfo.getProductName());
        setEnumCategoryId(productInfo.getEnumCategoryId());
        setElectricityBusinessName(productInfo.getElectricityBusinessName());
        setUnitPrice(productInfo.getUnitPrice());
        setElectricityBusinessId(productInfo.getElectricityBusinessId());
        setStockVolume(productInfo.getStockVolume());
        setStockUnit(productInfo.getStockUnit());
        setTradingTime(productInfo.getTradingTime());
    }

}
